package com.example.demo.shengcheng;

import java.util.Random;

public class Gongei {
    static Random random = new Random();
    public static int yin(double v){
        if (v<=0.5){
            return random.nextInt(10000);
        }else {
            return random.nextInt(1000);
        }
    }
    public static int yang(double v){
        if (v<=0.5){
            return random.nextInt(10000);
        }else {
            return random.nextInt(1000);
        }
    }
}
